# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=WWW-RobotRules
pkgname=perl-${_realname}
pkgver=6.02
pkgrel=2
pkgdesc="Database of robots.txt-derived permissions"
arch=('any')
url="https://metacpan.org/release/WWW-RobotRules"
groups=('perl-modules')
license=('PerlArtistic' 'GPL')
depends=('perl' 'perl-URI')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz)
sha1sums=('e158e6559307878b32d8e4c241bf257c2bc88ebb')

build() {
  cd "${srcdir}/${_realname}-${pkgver}"
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make test
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
